package com.ht.domain.bo;

import com.ht.domain.po.TbKnowledge;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Builder
public class TbKnowledgeBO {

    private long id;
    private String knowledgeName;
    private long categoryId;
    private long juniorId;
    private Integer chargeStatus;

    public TbKnowledgeBO(TbKnowledge knowledge) {
        this.id=knowledge.getId();
        this.knowledgeName=knowledge.getKnowledgeName();
        this.categoryId= knowledge.getCategoryId();
        this.juniorId=knowledge.getJuniorId();
        this.chargeStatus=knowledge.getChargeStatus();
    }
}


